#include "Heap.h"

void test()
{
	HP ph;
	HeapInit(&ph);
	HeapPush(&ph, 1);
	HeapPush(&ph, 7);
	HeapPush(&ph, 5);
	HeapPush(&ph, 4);
	HeapPush(&ph, 4);
	HeapPush(&ph, 4);



}


void test01()
{
	int a[7] = { 0,0,0,6,8,3,9 };
	int len = sizeof(a) / sizeof(int);

	Heapsort(a,len);

	int i = 0;
	while (i!=len)
	{
		printf("%d ", a[i]);
		i++;
	}
}


int main()
{
	//test();
	test01();

	return 0;
}